package com.lss.fmap.model;

import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import java.util.List;

@Dao
public interface AccountingDao {
    @Insert
    void insert(Accounting accounting);

    @Query("SELECT * FROM accounting")
    LiveData<List<Accounting>> getAllAccountings();

    @Query("DELETE FROM accounting")
    void deleteAll();
}
